set terminal epslatex leveldefault color blacktext \
   dashed dashlength 1.0 linewidth 2.0 butt \
   palfuncparam 2000,0.003 \
   noheader "" 10 
   
set output 'mf-comparison.tex'

set ylabel 'log$_{10}$(dn)/dlog$_{10}$(m) [h$^{3}$Mpc$^{-3}$]'
set xlabel 'log$_{10}$(m) [M$\odot$/h]'

set title 'Comparison of MF from Reed et al. and Milli-Millenium Simulation (z=7.883)'

set multiplot

set origin 0,0
set size 1,1

set xrange [2:18]
set yrange [-350:75]

set arrow 1 nohead from 9.5,-7 to 9.5,2 lw 1
set arrow 2 nohead from 9.5,2 to 12,2 lw 1
set arrow 3 nohead from 12,2 to 12,-7 lw 1
set arrow 4 nohead from 12,-7 to 9.5,-7 lw 1

plot '../../reed-mf/genmfcode/z7.883mf' u 1:2 w l lw 2 title 'Reed et al', '../../millenium-data/mass-function/halo_MF_output.dat' u 1:2 title 'Milli-Millenium' smooth bezier lw 2


set origin 0.17,0.17
set size 0.6,0.5

unset key
unset arrow 1
unset arrow 2
unset arrow 3
unset arrow 4
unset title
unset xlabel
unset ylabel

set xrange [9.5:12]
set yrange [-7:2]

plot '../../reed-mf/genmfcode/z7.883mf' u 1:2 w l lw 3 title 'Reed et al', '../../millenium-data/mass-function/halo_MF_output.dat' u 1:2 title 'Milli-Millenium' smooth bezier lw 3


replot
unset multiplot

